﻿using AutoMapper;
using HamcoWcs.Contract.ContractCommon;
using HamcoWcs.Contract.ContractMes;
using HamcoWcs.DAL;
using HamcoWcs.Entitys.MesMsgQueues;
using HamcoWcs.Models.Common.Enums;
using HamcoWcs.Service.Common;


namespace HamcoWcs.Service.Mes.Parsers
{
    public class MesMsgParser_AreYouThereRequest : MesMsgParserBase, IMesMsgParser
    {
        public MesMsgParser_AreYouThereRequest(ILoggerService loggerService, WcsDbContext wcsDbContext, IMapper mapper)
            : base(loggerService, wcsDbContext, mapper)
        {
        }

        public override string EventName => "AreYouThereRequest";


        public override void HandleEvent(MesMsgQueue message)
        {
            message.Status = (int)EnumMesMsgStatus.Completed;
        }
    }
}
